{ext->get_comments assign="elements" id=$data.page.id admin=1}
<table width="100%" cellpadding="6" cellspacing="0" border="0" bordercolor="#DBE1E5" bgcolor="#DBE1E5">
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="12"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
	<tr>
		<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
{if $elements}
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
	<tr>
		<td style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="70">{t t='Žymėjimas'}</td>	
		<td style="font-size:9px; color:#4C4C4C; text-align:left; padding:0px 0px 0px 10px;">{t t='Komentaras'}</td>	
		{ext->array_key_exists array=$data.site key='site_settings_comments_cenzure' assign="is_cenzure"}
		{if $is_cenzure}
		<td align="right" width="71">
			<table cellpadding="0" cellspacing="0">
				<tr>
					<td height="20" width="70" style="font-size:9px; color:#4C4C4C; border-left:1px solid #D6DBDE; text-align:center">{t t='Rodyti'}</td>
				</tr>
			</table>
		</td>
		{/if}
		<td align="right" width="71">
			<table cellpadding="0" cellspacing="0">
				<tr>
					<td height="20" width="70" style="font-size:9px; color:#4C4C4C; border-left:1px solid #D6DBDE; text-align:center">{t t='Veiksmas'}</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
{foreach from=$elements key="key" item="el"}
	<!-- * -->
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0"{if !$el.hide}bgcolor="#FDFDFD"{else}bgcolor="#F4F6F7"{/if}>
		<tr>
			<td height="22" width="70" align="center" style="border-right:1px solid #D6DBDE"><input name="ids[]" value="{$key}" type="checkbox"></td>
			<td style="padding:0px 0px 0px 10px; border-right:1px solid #D6DBDE">
			{include file="admin/body/comments/selector.html"}
			</td>
			{if $is_cenzure}
				{ext->get_comment_cenzure id=$data.page.id nr=$key assign="hide"}
				<td style="border-right:1px solid #D6DBDE" align="center" width="70"><a href="index.php?admin=1&mod=comments&act=set_cenzure&id={$data.page.id}&&nr={$key}&action={if $hide=="0"}1{else}0{/if}" target="_self"><img src="_tvs_system_core_/design/img/admin/_status_{$hide}.gif"></a></td>
			{/if}
			<td align="center" width="70"><a href="index.php?admin=1&tpl_action=edit_comments&id={$data.page.id}&nr={$key}" target="_self"><img src="_tvs_system_core_/design/img/admin/_icon_page_properties.gif"></a></td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<!-- /* -->
{/foreach}
{else}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="50" bgcolor="#FFFFFF" align="center" style="padding:15px">{t t='Šis puslapis neturi komentarų. Sukurkite juos!'}</td>		
	</tr>
</table>
{/if}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
	<tr>
		<td height="12"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>	
</table>
</td>		
</tr>
</table>